﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Caipan
    {
        public void RuleSpeak()
        {
            Console.WriteLine("------欢迎进入游戏世界------");
            Console.WriteLine();
            Console.WriteLine("****************************");
            Console.WriteLine("*********猜拳，开始*********");
            Console.WriteLine("****************************");
            Console.WriteLine("出拳规则：1.剪刀 2.石头 3.布");
        }
        public void returnup(string name,Heroname he,int counttime, int result1,int result2)
        {

            Console.WriteLine("===================================");
            Console.WriteLine($"{name} vs {he}");
            Console.WriteLine($"对战次数：{counttime}");
            Console.WriteLine();
            Console.WriteLine($"姓名\t得分");
            Console.WriteLine($"{name}\t{result1}");
            Console.WriteLine($"{he}\t{result2}");
            Console.Write("结果：");
            result(name, he, result1, result2);
        }
        public void result(string name,Heroname he,int result1,int result2)
        {
            if (result1 > result2)
            {
                Console.WriteLine($"{name}赢，{he}笨蛋");
            }
            else if(result1 > result2)
            {
                Console.WriteLine($"{he}赢，{name}笨蛋");
            }
            else
            {
                Console.WriteLine("平局！");
            }
        }
        public void Shibai(string name)
        {
            Console.WriteLine($"笨蛋，{name}输了");
        }
        public void Win(string name)
        {
            Console.WriteLine($"恭喜，{name}赢了");
        }
        public void He()
        {
            Console.WriteLine("和局，真衰！嘿嘿，等着瞧吧！");
        }
    }
}